/* 
 * File:   Node.cxx
 * Author: enric
 * 
 * Created on 31 de enero de 2012, 18:44
 */

#include "Node.hxx"

Node::Node(State& state, Action* action) {
    this->m_state = &state;
    this->m_action = action;
    this->m_isEvaluated = false;
}

void Node::setFather(Node& node) {
    this->m_father = &node;
}

bool Node::isEvaluated() {
    return this->m_isEvaluated;
}

void Node::setEval() {
    this->m_isEvaluated = true;
    this->m_eval = 3*this->m_heuristics + this->m_acom;
}

void Node::setHeuristics(int value) {
    this->m_heuristics = value;
}

void Node::setAcom(int value) {
    this->m_acom = value;
}